- /* sloslrem.cpp by K.Tsuru */
- // function ID = 230 DRADIX
- /***************************
- SLong class
- Provides remainder m % n.
- [Notice]
- Using the relations
- m=n*q+r (q = m/n)
- r = m-n*q
- i.e.
- m%n = m - n*(m/n)
- can be evaluated.
- ****************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- SLong operator%(const SLong& m, const SLong& n){
- Ldiv_t r = LLDiv(m, n, 1);
- return r.rem;
- }
sloslrem.cpp : last modifiled at 2016/05/01 10:23:44(415 bytes)
created at 2017/10/07 10:26:50
The creation time of this html file is 2017/11/09 14:52:03 (Thu Nov 09 14:52:03 2017).